const fs = require('fs')
const path = require('path')
const http = require('http')

const server = http.createServer((req, res) => {
  const html = fs.readFileSync(path.resolve(__dirname, '06-响应练习.html'))
  res.write(html)
  res.end()
})
server.listen(3000, () => {
  console.log('启动成功！')

})